<template>
  <el-container>
    <el-header height="80px">
      <img height="60" src="../assets/logo.png" alt="" />
      <span>Header</span>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <router-link to="/admin">Dashboard</router-link>
        <router-link :to="{ name: 'AdminNews' }">新闻管理</router-link>
        <router-link to="/">用户管理</router-link>
        <router-link to="/">轮播图管理</router-link>
        <router-link to="/">关于我们</router-link>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: "Admin",
};
</script>

<style scoped lang="less">
@main-height: calc(100vh - 80px);

.el-header {
  background: cornflowerblue;
  display: flex;
  align-items: center;
}

.el-aside {
  background-color: #d3dce6;
  color: var(--el-text-color-primary);
  text-align: center;
  height: @main-height;

  a {
    display: block;
    height: 40px;
    line-height: 40px;
  }
}
</style>
